package fictional.Common;

public class PowerItem extends DBItem implements Comparable<PowerItem>{

	/**
	 * Returns a new Power object.
	 * @param id The id
	 * @param mid The mid
	 */
	public PowerItem(int id, String mid) {
		super(id, mid);
	}
	
	public PowerItem(int id, String mid,String name) {
		super(id, mid);
		this.power = name;
	}
	
	public void setPower(String power) {
		this.power = power;
	}

	public String getPower() {
		return power;
	}

	public int compareTo(PowerItem s) {
		if (s.power.equals(this.power))
			return 0;
		else
			return (s.power.compareTo(this.power));
	}
	private String power;
}
